package org.halk.controller;

import org.halk.entity.User;
import org.halk.service.Strategy2Service;
import org.halk.service.StrategyFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/strategy2")
public class StrategyDemo2Controller {

    @Resource
    private Strategy2Service strategy2Service;

    @GetMapping("/test")
    public List<User> test(@RequestParam String projectId) {
        return strategy2Service.get(projectId);
    }

}
